package com.showcai.tools.myRunTime;


import com.showcai.tools.result.ReturnCode;

public class MyRunTimeExcption extends RuntimeException {

    private Integer erroCode;

    public Integer getErroCode() {
        return erroCode;
    }

    public void setErroCode(Integer erroCode) {
        this.erroCode = erroCode;
    }

    public MyRunTimeExcption() {
        super();

    }

    public MyRunTimeExcption(String message, Throwable cause) {

        super(message, cause);

    }

    public MyRunTimeExcption(String message) {
        super(message);

    }

    public MyRunTimeExcption(Integer erroCode, String message) {
        super(message);
        this.erroCode = erroCode;
    }
    public MyRunTimeExcption(ReturnCode returnCode) {
        super(returnCode.getMsg());
        this.erroCode = returnCode.getCode();
    }

    public MyRunTimeExcption(Throwable cause) {
        super(cause);

    }

}
